<%-- 
    Document   : show
    Created on : 8-dec-2009, 1:31:17
    Author     : Thomas Roelens
--%>
<%-- ${pageContext.request.contextPath} --%>
<%@include file="../header.jsp" %>

<h1>Your GP Profile</h1>

<c:if test="${! empty flash}">
    <div class="error">${flash}</div>
</c:if>

<form method="post" action="${pageContext.request.contextPath}/gp/profile/saveedit.jsp">
    <table>
        <tr>
            <td>
                <strong>Basic information</strong>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>
                Firstname:
            </td>
            <td>
                <input type="text" name="firstname" value="${gp.firstname}"/>
            </td>
        </tr>
        <tr>
            <td>
                Surname:
            </td>
            <td>
                <input type="text" name="surname" value="${gp.surname}"/>
            </td>
        </tr>
        <tr>
            <td>
                Username:
            </td>
            <td>
                ${gp.username}
            </td>
        </tr>
        <tr>
            <td>
                <strong>Address information</strong>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                Street:
            </td>
            <td>
                <input type="text" name="street" value="${location.street}"/>
            </td>
        </tr>
        <tr>
            <td>
                Number:
            </td>
            <td>
                <input type="text" name="number" value="${location.number}"/>
            </td>
        </tr>
        <tr>
            <td>
                Zipcode:
            </td>
            <td>
                <input type="text" name="zipcode" value="${location.zipcode}"/>
            </td>
        </tr>
        <tr>
            <td>
                Town:
            </td>
            <td>
                <input type="text" name="town" value="${location.town}"/>
            </td>
        </tr>
        <tr>
            <td>
                Country:
            </td>
            <td>
                <input type="text" name="country" value="${location.country}"/>
            </td>
        </tr>
        <tr>
            <td>
                <strong>Contact information</strong>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>
                Phone nr:
            </td>
            <td>
                <input type="text" name="phoneNumber" value="${location.phoneNumber}"/>
            </td>
        </tr>
        <tr>
            <td>
                E-mail:
            </td>
            <td>
                <input type="text" name="email" value="${location.email}"/>
            </td>
        </tr>

        <tr>
            <td></td>
            <td>
                <input type="submit" name="submit" value="Update" />
            </td>
        </tr>
    </table>
</form>

<div>
    <a href="${pageContext.request.contextPath}/gp/profile/password">Change your password</a>
</div>

<div class="back">
    <a href="javascript:history.back()">Back</a>
</div>

<%@include file="../footer.jsp" %>
